Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / ui / src / commonMain / kotlin / org / meshtastic / core / ui / util / DiscoveryMapNode.kt

Displaying Raw • Download

core/ui/src/commonMain/kotlin/org/meshtastic/core/ui/util/DiscoveryMapNode.kt 01cd54907d62cd90913d3d071b6bc240cae365ef (01cd5490) Text, 1.61 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ui.util

T8b949e/** Neighbor type classification for discovery map markers. */
Tff7b72enum Tff7b72class T56d364DiscoveryNeighborType Tb4b4b4{
Te6edf3DIRECTTb4b4b4,
Te6edf3MESHTb4b4b4,
Tb4b4b4}

T8b949e/**
* Platform-neutral representation of a discovered node for map rendering. Contains only the data needed to place and
* style a marker — no Room entities or platform types leak into the map provider API.
*/
Tff7b72data Tff7b72class T56d364DiscoveryMapNodeTb4b4b4(
Tff7b72val Te6edf3latitudeTb4b4b4: Tffa657DoubleTb4b4b4,
Tff7b72val Te6edf3longitudeTb4b4b4: Tffa657DoubleTb4b4b4,
Tff7b72val Te6edf3shortNameTb4b4b4: Tffa657String?Tb4b4b4,
Tff7b72val Te6edf3longNameTb4b4b4: Tffa657String?Tb4b4b4,
Tff7b72val Te6edf3neighborTypeTb4b4b4: Te6edf3DiscoveryNeighborTypeTb4b4b4,
Tff7b72val Te6edf3snrTb4b4b4: Tffa657Float Tff7b72= T79c0ff0fTb4b4b4,
Tff7b72val Te6edf3rssiTb4b4b4: Tffa657Int Tff7b72= T79c0ff0Tb4b4b4,
Tff7b72val Te6edf3messageCountTb4b4b4: Tffa657Int Tff7b72= T79c0ff0Tb4b4b4,
Tff7b72val Te6edf3sensorPacketCountTb4b4b4: Tffa657Int Tff7b72= T79c0ff0Tb4b4b4,
Tb4b4b4) Tb4b4b4{
T8b949e/**
* FR-011: Map icon classification. If environment packets > text messages, return true (sensor). Otherwise return
* false (social/chat).
*/
Tff7b72val Te6edf3isSensorNodeTb4b4b4: Tffa657Boolean
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72= Te6edf3sensorPacketCount Tff7b72> Te6edf3messageCount
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s